package stud.aistar.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import stud.aistar.entity.Pay;

/**
 * Created by Administrator on 2019/10/11.
 */
public interface PayMapper {

    @Insert("insert into pay (out_trade_no,amt,create_time,reg_id) values (#{outTradeNo},#{amt},#{createTime},#{regId})")
    void savePay(Pay pay);

    @Select("select * from pay where reg_id = #{value}")
    Pay findByRegId(Integer id);
}
